Skip to content

Haya Abusaq - Level1.4#2

Open
H4ya wants to merge 12 commits intoProgramming-Club-IAU:mainfrom
H4ya:main
Open

Haya Abusaq - Level1.4#2
H4ya wants to merge 12 commits intoProgramming-Club-IAU:mainfrom
H4ya:main

Conversation

@H4ya
Copy link

@H4ya H4ya commented Apr 3, 2024

image

  • The amica class represents a program that calculates attendance and grades for students.
  • It prompts the user to enter their name, attendance for each subject, and GPA.
  • Based on the attendance and GPA, it determines whether the student has succeeded or failed.
  • The program also allows the user to enter an excuse of absence, and if the excuse contains the word "hospital",
  • it increases the attendance for all subjects by 1 and rechecks the success criteria.
  • The final result is displayed along with the student's information.
    The student will fail if the attendance where bellow the requirements of GPA was equal to or under 3.5

@H4ya
Copy link
Author

H4ya commented Apr 14, 2024

I created another file for the bonus. It reads the inputs from the txt file

image

and this is the output

image

the txt file I used in the example:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant